package com.quanyan.user.model.vo.response;

import com.quanyan.user.model.db.TbInterest;
import com.quanyan.user.model.db.TbUser;
import com.quanyan.user.model.db.TbUserInterest;
import scala.Int;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;

/**
 * Created by yue.yuan on 2016/7/4.
 */
public class QueryUserInterest {

    private Integer userId;
    //设备号
    private String dsn;
    //昵称
    private String nickName;
    //更新时间
    private Date updateTime;
    //手机号
    private String mobile;

    private String interestId;
    //兴趣列表
    private List<Integer> interestIds;

    public List<Integer> getInterestIds() {
        return interestIds;
    }

    public void setInterestIds(List<Integer> interestIds) {
        this.interestIds = interestIds;
    }

    public String getInterestId() {
        return interestId;
    }

    public void setInterestId(String interestId) {
        this.interestId = interestId;
        if(null != interestId)
        {
            String[] ids = interestId.split(",");
            List<Integer> list = new ArrayList<Integer>();
            for(String i : ids)
            {
                list.add(Integer.parseInt(i));
            }
            setInterestIds(list);
        }
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getDsn() {
        return dsn;
    }

    public void setDsn(String dsn) {
        this.dsn = dsn;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
}
